import { httpPost } from "@utils/HttpUtil";
import { Button, Flex } from "antd";
import { FC } from "react";

const FunctionManageData: FC = () => {

  return (
    <>
      <Flex wrap gap="large" style={{ margin: 40 }}>
        <Button
          type="primary"
          onClick={() => {
            // 触发数据库备份
            httpPost("/admin/backup", {});
          }}
          style={{
            width: "200px",
            height: "60px",
            backgroundColor: "#1a6840",
          }}
        >
          备份数据库数据
        </Button>
        <Button
          type="primary"
          onClick={() => {}}
          style={{
            width: "200px",
            height: "60px",
            backgroundColor: "#1e9eb3",
          }}
        >
          下载资源
        </Button>
        <Button
          type="primary"
          onClick={() => {}}
          style={{
            width: "200px",
            height: "60px",
            backgroundColor: "#1177b0",
          }}
        >
          下载日志
        </Button>
      </Flex>
    </>
  );
};

export default FunctionManageData;
